package com.kehutong.auth.entity;

import com.kehutong.auth.enums.OperateType;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.KeyType;
import org.coraframework.orm.annotation.Table;

/**
 * 账号操作日志
 *
 * @author: liukunlong
 * @date: 2021-05-07 14:50
 */
@Table(value = "t_account_operate_log", comment = "账户操作日志")
public class AccountOperateLog extends Entity {
    private static final long serialVersionUID = 296129229105462474L;

    protected AccountOperateLog(String id) {
        super(id);
    }

    @Column(length = 64, comment = "账户编号")
    private String accountNo;

    @Column(comment="创建人")
    private String createBy;

    @Column(comment = "创建人名字")
    private String createName;

    @Column(comment = "操作类型")
    private OperateType type;

    @Column(comment = "操作详情")
    private String desc;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    @Column(comment = "公司编号")
    private String companyNo;

    @Column(comment = "公司名称")
    private String companyName;

    public String getAccountNo() {
        return accountNo;
    }

    public void setAccountNo(String accountNo) {
        this.accountNo = accountNo;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public OperateType getType() {
        return type;
    }

    public void setType(OperateType type) {
        this.type = type;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
}
